package com.gm.dao.bill;

import com.github.miemiedev.mybatis.paginator.domain.PageBounds;
import com.github.miemiedev.mybatis.paginator.domain.PageList;
import com.gm.controller.dto.BillDTO;
import com.gm.model.po.Bill;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by Administrator on 2017/6/28.
 */
public interface IBillDao {
    int deleteByPrimaryKey(Integer id);

    int insert(Bill record);

    int insertSelective(Bill record);

    Bill selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Bill record);

    int updateByPrimaryKey(Bill record);

    int exsitCardBill(@Param("cdid")Integer cdid,@Param("now")Integer now);

    List<BillDTO> getAll();

    PageList<BillDTO> getBillList(@Param("pageBounds")PageBounds pageBounds);
}
